//优化：将actionCreator单独抽到一个文件中
const changeNameAction = (name) => {
  return {
    type: "change_name",
    name: name
  }
}

const addNumberAction = (counter) =>({
  type: "add_number",
  counter
})

module.exports = {
  changeNameAction,
  addNumberAction
}